CXX = g++
CXXFLAGS = -Wall -g 
EXEC = exe
SRC = $(wildcard *.cpp)
OBJ = $(SRC:.cpp=.o)
HEADERS = $(wildcard *.h)

all : $(EXEC)


$(EXEC) : $(OBJ)
	@$(CXX) -o $@ $^ 

serv.o : $(HEADERS)

%.o : %.cpp
	@$(CXX) $(CXXFLAGS) -o $@ -c $<


clean :
	rm -f *.o
